package com.fount4j.generator.config;

/**
 * 映射文件配置
 *
 * @author
 */
public class MapperConfig extends PropertyHolder {
    /** 是否生成 */
    private Boolean enable = true;
    /** 映射文件所属包 */
    private String packageName;
    /** 映射文件路径 */
    private String resourcePath;
    /** 映射文件基于 entity 类的名字后缀，默认为 Mapper */
    private String nameSuffix = "Mapper";

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getResourcePath() {
        return resourcePath;
    }

    public void setResourcePath(String resourcePath) {
        this.resourcePath = resourcePath;
    }

    public Boolean getEnable() {
        return enable;
    }

    public String getNameSuffix() {
        return nameSuffix;
    }

    public void setNameSuffix(String nameSuffix) {
        this.nameSuffix = nameSuffix;
    }

    public boolean isEnable() {
        return enable != null && enable;
    }
}
